#ifndef __DS1307_H
#define __DS1307_H

#include "MyI2C.h"
#include "OLED.h"
#include "stm32f1xx_hal.h" 

/*RTC数据结构体*/
typedef struct {
    uint8_t hour;
    uint8_t min;
    uint8_t sec;
} DS1307_Data;

void DS1307_W_Reg(uint8_t reg_address , uint8_t data);
uint8_t DS1307_R_Reg(uint8_t reg_address);
void Read_DS1307_Data(void);
void DS1307_Init(void);
void DS_Show_Time(void);


#endif
